Skip to content

Fixes for #2408 and #2409. #2410

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 3 commits into from
Closed

Fixes for #2408 and #2409. #2410

wants to merge 3 commits into from

Conversation

odrotbohm
Copy link
Member

@odrotbohm odrotbohm commented Jul 9, 2021

See the commit messages for details. Needs spring-projects/spring-data-jpa#2255 and spring-projects/spring-data-mongodb#3701 merged, too.

* @since 2.6
*/
Iterable<? extends TypeInformation<?>> getPersistentEntityTypeInformation();

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The documentation is a bit confusing as it states the method to return null for a method thats return type is an Iterable. Wouldn't empty be a better fit?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good catch. Indeed, the Javadoc still stems from the times that the original method which the comment was copied from returned a single type, not a collection.

christophstrobl and others added 3 commits July 12, 2021 22:00
…nd Class on PersistentProperty.

We now name methods returning a TypeInformation<?> …TypeInformation() and ones that return Class<?> …Type(). In case of both flavors provided, overloads should move to the TypeInformation-based variant as the other one simply resolves ….getType() on the returned value.

Fixes #2408.
…et type if available.

This causes us to inspect the most concrete type we can find from a property declaration that might be overridden using an annotation.

Fixes #2409.
christophstrobl pushed a commit that referenced this pull request Jul 13, 2021
…nd Class on PersistentProperty.

We now name methods returning a TypeInformation<?> …TypeInformation() and ones that return Class<?> …Type(). In case of both flavors provided, overloads should move to the TypeInformation-based variant as the other one simply resolves ….getType() on the returned value.

Closes: #2408
Original Pull Request: #2410
christophstrobl pushed a commit that referenced this pull request Jul 13, 2021
…et type if available.

This causes us to inspect the most concrete type we can find from a property declaration that might be overridden using an annotation.

Closes: #2409
Original Pull Request: #2410
christophstrobl added a commit that referenced this pull request Jul 13, 2021
Update documentation to match method signature.

Original Pull Request: #2410
@christophstrobl christophstrobl deleted the issue/2408-2409 branch July 13, 2021 05:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants